package com.fts.fts.fitness_tracking_system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.util.Date;

@Table(name = "video")
@Data
public class Video implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "title")
    private String title;

    @TableField(value = "description")
    private String description;

    @TableField(value = "category_id")
    private Integer categoryId;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "duration")
    private Integer duration; // 单位：秒

    @TableField(value = "cover_url")
    private String coverUrl;

    @TableField(value = "video_url")
    private String videoUrl;

    @TableField(value = "resolution")
    private String resolution;

    @TableField(value = "created_at")
    private Date createdAt;

    @TableField(value = "updated_at")
    private Date updatedAt;
}